﻿using System;
using Medianamik.Core;
using Medianamik.UI.Web.MVP.View;

namespace Medianamik.UI.Web.Shop
{
    public interface IAttributeTypeListView : IModuleViewWithNodeTypeGrid { }

    public partial class ShopAttributeTypeList : ModuleViewWithNodeTypeGrid<IAttributeTypeListView>, IAttributeTypeListView
    {
        public override System.Web.UI.WebControls.HyperLink AddButton
        {
            get
            {
                return lnkAddNode;
            }
        }

        public override string TypeSelectorUrl
        {
            get
            {
                return Pages.AttributeTypeEdit;
            }
        }

        public override string ListingPageUrl
        {
            get { return Pages.AttributeTypeList; }
        }

        public override IMedianamikGrid Grid
        {
            get { return (IMedianamikGrid)AttributeTypeGrid; }
        }

        public override string ChildrenListingPageUrl
        {
            get
            {
                return Pages.AttributeTypeValueList;
            }
        }
    }
}